#!/usr/bin/env node
console.log(process.pid);
const cp = require('child_process');
console.log(`I am father,PID:${process.pid}`);
const child = cp.fork('./03-child.js');
/*console.log(child);*/
//child.stdout.pipe(process.stdout);
/*child.stderr.pipe(process.stderr);*/
setTimeout(()=>{
  console.log('father:bye!');
  process.exit();
},5000)

